import { defineStore } from 'pinia'
import { ref, computed } from 'vue'

const storeSetup = () => {
  /* 定义数据--------------------------------------------------------------------- */
	// 首页模块列表
	const moduleList = ref([
		{
			moduleName:"传输配置",
			iconTag:'transfer',
			bgColor:'#3b82f6',
			toPath:'/pages/transferConfig/transferConfig'
		},
		{
			moduleName:"数据上报",
			iconTag:'data',
			bgColor:'#6b64f3',
			toPath:'/pages/dataReported/dataReported'
		}
	])
	
  /* 定义函数--------------------------------------------------------------------- */
  
  // 返回参数
  return {
    moduleList
  }
}

// 导出Store
export const useHomeStore = defineStore('home', storeSetup)
